home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 May / PCpro_2006_05.ISO / files / mobile / fma-2.0-stable-setup.exe / {app} / sframework / plugins / Configurator.vbs < prev    next >
Encoding:
Text File  |  2004-09-09  |  1.2 KB  |  48 lines

  1. 'FMA Script Framework Core Plugin
  2. 'Configurator
  3.  
  4. 'TODO:
  5. '-nothing atm
  6.  
  7. Class Configurator
  8.     
  9.     Private m_Self
  10.     
  11.     'Some info about the plugin
  12.     Public Property Get SHOWABLE 'Do I have a menu?
  13.         SHOWABLE    = True
  14.     End Property
  15.     Public Property Get TITLE 'What's my name?
  16.         TITLE       = "Configurator"
  17.     End Property
  18.     Public Property Get DESCRIPTION 'What's my purpose?
  19.         DESCRIPTION = "FMA Scripting Framework Configurator"
  20.     End Property
  21.     Public Property Get AUTHOR 'Who created me?
  22.         AUTHOR      = "streawkceur"
  23.     End Property
  24.     Public Property Get URL 'Were can I be found? Where can you get more information?
  25.         URL = "http://fma.xinium.com/"
  26.     End Property
  27.     
  28.     'Who am I?
  29.     Public Property Let Self (s)
  30.         m_Self = s
  31.         'Some init stuff here
  32.         EventManager.RegisterEvent "Init", m_Self & ".Splash", Me
  33.     End Property
  34.     Public Property Get Self
  35.         Self = m_Self
  36.     End Property
  37.     
  38.     Sub Show()
  39.         Shell.Exec ScriptFolder & "helper\config\config.exe"
  40.         am.Update
  41.     End Sub
  42.     
  43.     Sub Splash()
  44.         fma.AddCmd "Script Configurator", "Shell.Exec """ & ScriptFolder & "helper\config\config.exe"""
  45.         Shell.Exec ScriptFolder & "helper\config\config.exe splash"
  46.     End Sub
  47.  
  48. End Class